package com.gitee.feizns.web.dao.ar.annotation.condition;

import com.baomidou.mybatisplus.enums.SqlLike;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 模糊匹配
 * @author feizns
 * @since 2019/8/3 0003
 */
@Target({ElementType.FIELD, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Like {

    /**
     * 字段名
     * @return
     */
    String[] value() default {};

    /**
     * 模糊匹配规则
     * @return
     */
    SqlLike type() default SqlLike.DEFAULT;

}
